<template>
	<div id="">
		<Card style="width:350px;left: 40%;">
			<h3>{{house.title}} </h3>
			<div class="hui">
				<span>描述:{{house.detail}}</span><br />
				<span>发布人:{{house.personName}}</span><br />
				<span>电话号:{{house.tel}}</span><br />
				<span>微信号:{{house.wxNumber}}</span><br>
			</div>
		</Card>
				
			
		
	</div>
</template>

<script>
export default {
	data(){
		return{
			house:{},
			houseRentId:8,
		}
	},
	methods:{
		searchData: function() {
			console.log(11111111);
			this.http.get({
				url: "/house-rent-client-vo/info",
				param: {
					houseRentId: this.$data.houseRentId
				}
			}).then(data => {
				console.log(data);
				this.$data.house = data;
			});
		},
			
	},
	created() {
		this.$data.houseRentId = this.$route.params.houseRentId
		this.searchData()
	},
	beforeRouteLeave(to, from, next) {
	    this.$destroy();//手动销毁当前页面
	    next();
	},
}
</script>

<style>
</style>
